import axios from 'axios';
import { MO_URL } from '@/constant';

const MockRequest = axios.create({
  baseURL: MO_URL,
  timeout: 5000,
});

// 请求拦截器
MockRequest.interceptors.request.use((config) => {
  return config;
});

// 响应拦截器
MockRequest.interceptors.response.use(
  (res) => {
    return res.data;
  },
  (error) => {},
);

export default MockRequest;
